Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: bump actions/upload-artifact and actions/download-artifact to v4 #453

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

alecjacobs5401
Copy link
Contributor

Description

We're seeing some consistent 400 responses in our dist steps for our GitHub actions. After doing some digging, it looks like the v4 version of the Artifacts GitHub Actions was made available in early December that should resolve and/or make more reliable these actions.

Changes

The v4 versions of these actions come with some breaking changes and requirements that are addressed in this PR:

  • If we are using actions/upload-artifacts@v4, we must also be using actions/download-artifacts@v4
  • Artifact uploads must contain unique names.

@alecjacobs5401 alecjacobs5401 marked this pull request as ready for review January 16, 2024 18:36
@alecjacobs5401 alecjacobs5401 requested a review from a team as a code owner January 16, 2024 18:36
@@ -22,7 +22,7 @@ jobs:

- name: Make distributables
run: make -f Makefile.release dist
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: dist
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I opted to leave this as dist, but was tempted to make it dist-release for more defined uniqueness. Any input?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for dist-release

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, missed this. Going to leave as is for now and we can circle back around if we feel strongly.

@alecjacobs5401 alecjacobs5401 merged commit 5aec637 into master Jan 16, 2024
11 checks passed
@alecjacobs5401 alecjacobs5401 deleted the ajacobs/ci-dist-fix branch January 16, 2024 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants